﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class EmployeeDetails : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Page.IsPostBack){
            txtEmployeeID.Text = "";
            txtFirstName.Text = "";
            txtLastName.Text = "";
            txtDesignation.Text = "";
            txtCity.Text = "";
        }
    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        Response.Redirect("PaySlipDetails.aspx?fname=" + txtFirstName.Text +
                           "&lname=" + txtLastName.Text +"&dsgn=" + txtDesignation.Text+"&city="+txtCity.Text+
                           "&empID=" + txtEmployeeID.Text);
    }
    protected void btnReset_Click(object sender, EventArgs e)
    {
        txtEmployeeID.Text = "";
        txtFirstName.Text = "";
        txtLastName.Text = "";
        txtDesignation.Text = "";
        txtCity.Text = "";
    }
}